#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <qprocess.h>
#include <QResizeEvent>
#include <QFile>
#include <QPicture>
#include <QMessageBox>
#include <QTimer>
#include <QPixmap>
#include <QImage>
#include <QTime>
#include <QRandomGenerator>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    //static int flag;
private slots:
    void onTimer1Out();

private slots:
    void on_pushButton_clicked();



    void OnFinishProc(int, QProcess::ExitStatus);


    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

protected:


private:
    Ui::MainWindow *ui;

    QTimer m_timer1;

    QString m_filePath;

    uint m_proccesstime;

};

#endif // MAINWINDOW_H
